package com.dbz.service.Impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dbz.dao.ShenPiDao;
import com.dbz.entity.ShenPi;
import com.dbz.service.ShenPiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShenPiServiceImpl implements ShenPiService {
    @Resource
    private ShenPiDao shenPiDao;

    @Override
    public IPage<ShenPi> selectPage(IPage<ShenPi> page, Wrapper<ShenPi> queryMapper) {
        return shenPiDao.selectPage(page,queryMapper);
    }

    @Override
    public int insertshenpi(List<Object> list) {
        return shenPiDao.insertshenpi(list);
    }

    @Override
    public List<ShenPi> shenpilistdt() {
        return shenPiDao.shenpilistdt();
    }

    @Override
    public int updateshenpi(String sidp,String userName) {
        return shenPiDao.updateshenpi(sidp,userName);
    }

    @Override
    public int noupdateshenpi(String spid,String userName) {
        return shenPiDao.noupdateshenpi(spid,userName);
    }
}
